﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<SuperStarProject.Models.DaiLyModel>>" %>
<% using (Html.BeginForm("ShowAll","DaiLy", FormMethod.Get)) {%>
        <label class="uc_contact"><strong>Chọn đại lý :</strong></label> 
        <select class = "uc_contact_input" name="DaiLyListBox" id="DaiLyListBox" onchange="GetMaDaiLy();">
            <% foreach (var item in Model)
                {%>
                    <option value=<%=Html.Encode(item.MaDaiLy)%>><%=Html.Encode(item.TenDaiLy)%></option>
            <% }%>
        </select>
<%} %>  

